Skip to content

Add margin-block-end to pds-textarea label wrapper#778

Open
michellechild wants to merge 1 commit into
mainfrom
mc/textarea-label-wrapper-margin
Open

Add margin-block-end to pds-textarea label wrapper#778
michellechild wants to merge 1 commit into
mainfrom
mc/textarea-label-wrapper-margin

Conversation

@michellechild

@michellechild michellechild commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • Adds margin-block-end: var(--pine-dimension-2xs) to .pds-textarea__label-wrapper
  • Matches the spacing used by .pds-input__label-wrapper for visual consistency across input types

Test plan

  • Verify pds-textarea with label renders with correct bottom margin on label wrapper
  • Compare spacing between pds-textarea and pds-input labels — should now be consistent

🤖 Generated with Claude Code


Note

Low Risk
Cosmetic SCSS only; no logic, data, or API impact.

Overview
Adds margin-block-end: var(--pine-dimension-2xs) on .pds-textarea__label-wrapper so labeled textareas get the same gap between the label row and the field as pds-input.

This is a one-line styling tweak in pds-textarea.scss; no markup or behavior changes.

Reviewed by Cursor Bugbot for commit ee56267. Bugbot is set up for automated code reviews on this repo. Configure here.

Add margin-block-end: var(--pine-dimension-2xs) to
.pds-textarea__label-wrapper to match the spacing used by
.pds-input__label-wrapper for visual consistency across input types.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for pine-design-system ready!

Name Link
🔨 Latest commit ee56267
🔍 Latest deploy log https://app.netlify.com/projects/pine-design-system/deploys/6a584d99278c970007feef77
😎 Deploy Preview https://deploy-preview-778--pine-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the package: core Changes have been made to the Core package label Jul 16, 2026
@michellechild michellechild self-assigned this Jul 16, 2026
@michellechild
michellechild marked this pull request as ready for review July 20, 2026 22:25

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ee56267. Configure here.

align-items: center;
display: flex;
justify-content: space-between;
margin-block-end: var(--pine-dimension-2xs);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hidden label still adds spacing

Medium Severity

Adding margin-block-end on .pds-textarea__label-wrapper leaves a gap when hideLabel is true. Unlike pds-input, only the inner span is visually hidden, so the wrapper stays in flow and its new margin still reserves space above the field.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ee56267. Configure here.

@QuintonJason QuintonJason Jul 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michellechild this is valid

Screenshot 2026-07-24 at 9 07 07 AM

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@QuintonJason thank you yes agreed ! I saw this and just haven't had a chance to revisit which is why I didn't merge. Will try and get to it next week 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core Changes have been made to the Core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants